

import request from '@/utils/request'

const userBaseUrl = process.env.VUE_APP_CONTENXT_PATH + "/food";


export function findAllType() {
    return request({
        url: userBaseUrl + '/listAllType',
        method: 'get',
    })
}



export function findTypes() {
    return request({
        url: userBaseUrl + '/allType',
        method: 'get',
    })
}

export function submitFoodType(data) {
    return request({
        url: userBaseUrl + '/addType',
        method: 'post',
        data: data
    })
}


